<%--
  Created by IntelliJ IDEA.
  User: mrcat
  Date: 2020-01-17
  Time: 22:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <title>登录</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="/lib/bootstrap/css/bootstrap.css" rel="stylesheet">
    <script src="/lib/jquery-3.4.1.min.js"></script>
    <script src="/lib/bootstrap/js/bootstrap.js"></script>
    <style>
        htmo, body {
            height: 100%
        }
    </style>
</head>
<body class="bg-secondary">
<div class="container h-100 d-flex justify-content-center">

    <div class="my-auto bg-white" style="padding: 30px 50px;width: 500px">
        <form method="post" action="login" method="post">
            <div class="row form-group">
                <label class="col-3 col-form-label">账号</label>
                <div class="col-9">
                    <input class="form-control" name="username" value="admin">
                </div>
            </div>
            <div class="row form-group">
                <label class="col-3 col-form-label">密码</label>
                <div class="col-9">
                    <input type="password" class="form-control" name="password" value="admin">
                </div>
            </div>
            <div class="row form-group" style="margin-top: 30px">
                <div class="col-12 text-right">
                    <button class="btn btn-primary col-3">登录</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>

<c:if test="${message!=null}">
    <script>alert('${message}')</script>
</c:if>
